package com.amumu.drama.common.modules.order.mapping;

import com.amumu.drama.common.base.mapstruct.BaseMapping;
import com.amumu.drama.common.modules.order.dto.req.OrderConfigReq;
import com.amumu.drama.model.order.OrderConfig;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author sunzhuang
 * @date 2024/10/24 14:34
 * @slogan 天下风云出我辈, 一入代码岁月催
 * @desc todo
 */
@Mapper(componentModel = "spring")
public interface SimpleOrderConfigReqMapping extends BaseMapping<OrderConfig, OrderConfigReq.SimpleOrderConfigReq> {
    SimpleOrderConfigReqMapping INSTANCE = Mappers.getMapper(SimpleOrderConfigReqMapping.class);

    /**
     * 反向映射的后置处理，List映射会自动继承此配置
     *
     * @param src
     * @param dest
     */
    @Override
    default void afterConvertFrom(OrderConfigReq.SimpleOrderConfigReq src, OrderConfig dest) {
    }
}
